From: Gabriel Wicke Date: Fri, 14 May 2004 22:09:33 +0000 (+0000) Subject: don't create a pre for a whitespace-only line X-Git-Tag: 1.3.0beta1~64 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=53acea5138c4a0e42c2853eaa6df8c4945617e0a;p=lhc%2Fweb%2Fwiklou.git don't create a pre for a whitespace-only line --- diff --git a/includes/Parser.php b/includes/Parser.php index 0fcf83f402..e292278267 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1256,7 +1256,7 @@ class Parser $inBlockElem = true; } } else if ( !$inBlockElem ) { - if ( " " == $t{0} ) { + if ( " " == $t{0} and trim($t) != '' ) { // pre if ($this->mLastSection != 'pre') { $paragraphStack = false;